// 设置转动
document.addEventListener("DOMContentLoaded", () => {
    const playPauseButton = document.getElementById("play-pause");
    const record = document.querySelector(".record");
    let isPlaying = true;

    playPauseButton.addEventListener("click", () => {
        if (isPlaying) {
            record.style.animationPlayState = "paused";
            playPauseButton.textContent = "▶️";
        } else {
            record.style.animationPlayState = "running";
            playPauseButton.textContent = "⏸️";
        }
        isPlaying = !isPlaying;
    });
});
